<!--{eval 
	$_G[home_tpl_titles] = array('{lang group}');
}-->
<!--{template common/header}-->

<div id="pt" class="wp">
	<a href="index.php" class="nvhm">$_G[setting][bbname]</a> &rsaquo;
	<a href="home.php">$_G[setting][navs][4][navname]</a> &rsaquo; 
	<a href="home.php?mod=space&do=group">{lang group}</a> &rsaquo; 
	<a href="home.php?mod=space&uid=$space[uid]&do=group">{$space[username]}{lang somebody_group}</a>
</div>

<style id="diy_style" type="text/css"></style>
<div class="wp">
	<!--[diy=diy1]--><div id="diy1" class="area"></div><!--[/diy]-->
</div>

<div id="ct" class="wp cl">
	<div class="mn">
		<div class="ch">
			<label class="wx"><a href="$_G[setting][navs][4][filename]">$_G[setting][navs][4][navname]</a></label>
		</div>
		<div class="bm">
			<h1 class="mt"><img src="{STATICURL}image/feed/group.gif" alt="{lang group}" class="vm" /> {lang group}</h1>
			<ul class="tb cl">
				<li $actives[groupthread]><a href="home.php?mod=space&do=group&view=groupthread">{lang group_thread}</a></li>
				<li $actives[mythread]><a href="home.php?mod=space&do=group&view=mythread">{lang my_thread}</a></li>
				<li $actives[join]><a href="home.php?mod=space&do=group&view=join">{lang my_join}</a></li>
				<li $actives[manager]><a href="home.php?mod=space&do=group&view=manager">{lang my_manage}</a></li>
				<li><a href="group.php?index=1">{lang all_group}</a></li>
				<li class="o"><a href="forum.php?mod=group&action=create">{lang create_group}</a></li>
			</ul>
			<!--{if $view == 'groupthread' || $view == 'mythread'}-->
				<div class="ptw tl">
					<!--{if !empty($typeid) || $view != 'groupthread' || $page > 1}-->
						<div class="tl">
							<p class="ttp cl">
							<!--{if empty($typeid)}-->
								<strong class="otp brw">{lang all}</strong>
							<!--{else}-->
							<a class="brw" href="home.php?mod=space&amp;do=group&amp;view=$view">{lang all}</a>
							<!--{/if}-->
							<!--{loop $usergroups['grouptype'] $type}-->
								<!--{if $typeid != $type['fid']}-->
									<a class="brw" href="home.php?mod=space&amp;do=group&amp;view=$view&amp;typeid=$type[fid]">$type[name]</a>
								<!--{else}-->
									<strong class="otp brw">$type[name]</strong>
								<!--{/if}-->
							
							<!--{/loop}-->
							</p>
						</div>
					<!--{/if}-->
				<table cellpadding="0" cellspacing="0" border="0" bgcolor="#ffffff">
					<thead>
						<tr>
							<td class="icn"></td>
							<td>
								<!--{if $view == 'groupthread'}-->{lang last_topic_in_group}<!--{else}-->{lang my_last_topic_in_group}<!--{/if}-->
								<!--{if !empty($usergroups['grouptype']) && count($usergroups['grouptype']) > 1}-->
									<button type="button" class="pn" onclick="showWindow('attentiongroup', 'home.php?mod=spacecp&ac=attentiongroup', 'get', 0);" style="margin-left:20px;"><strong>{lang setup}</strong></button>
									<script language="javascript">
										function succeedhandle_attentiongroup(locationhref) {
											hideWindow('attentiongroup');
											location.href = locationhref;
										} 
									</script>
								<!--{/if}-->
							</td>
							<td class="frm">{lang group}</td>
							<td class="num">{lang reply}</td>
							<td class="by">{lang last_post}</td>
						</tr>
					</thead>
					<!--{if $attentionthread}-->
					<!--{loop $attentionthread $fup $threads}-->
						<!--{loop $threads $tid $thread}-->
						<tr>
							<td class="icn">
								<a href="forum.php?mod=viewthread&tid=$tid" title="{lang open_new_window}" target="_blank">
								<!--{if $thread[folder] == 'lock'}-->
									<img src="{IMGDIR}/folder_lock.gif" /></a>
								<!--{elseif in_array($thread['displayorder'], array(1, 2, 3, 4))}-->
									<img src="{IMGDIR}/pin_$thread[displayorder].gif" alt="$_G[setting][threadsticky][3-$thread[displayorder]]" /></a>
								<!--{else}-->
									<img src="{IMGDIR}/folder_$thread[folder].gif" /></a>
								<!--{/if}-->
							</td>
							<td><a href="forum.php?mod=viewthread&tid=$tid" target="_blank">$thread[subject]</a></td>
							<td><a href="forum.php?mod=group&fid=$thread[fid]" target="_blank" class="xg1">$thread[groupname]</a></td>
							<td class="num">
								<a href="forum.php?mod=viewthread&tid=$tid" class="xi2">$thread[replies]</a>
								<em>$thread[views]</em>
							</td>
							<td>
								<cite><!--{if $thread['lastposter']}--><a href="home.php?mod=space&username=$thread[lastposter]">$thread[lastposter]</a><!--{else}-->{lang anonymous}<!--{/if}--></cite>
								<em><a href="forum.php?mod=viewthread&tid=$tid&amp;page={echo max(1, $thread[pages]);}">$thread[lastpost]</a></em>
							</td>
						</tr>
						<!--{/loop}-->
						<tr>
							<td colspan="5" align="right" class="ptm pbw">
								<a href="home.php?mod=space&amp;do=group&amp;view=$view&amp;typeid=$fup" class="xi2">[{$usergroups['grouptype'][$fup]['name']}]&nbsp;&nbsp;{lang more}...</a>
							</td>
						</tr>
					<!--{/loop}-->
					<!--{/if}-->
					<!--{if !empty($groupthreadlist)}-->
					<tbody>
					<!--{loop $groupthreadlist $tid $thread}-->
						<tr>
							<td class="icn">
								<a href="forum.php?mod=viewthread&tid=$tid" title="{lang open_new_window}" target="_blank">
								<!--{if $thread[folder] == 'lock'}-->
									<img src="{IMGDIR}/folder_lock.gif" /></a>
								<!--{elseif in_array($thread['displayorder'], array(1, 2, 3, 4))}-->
									<img src="{IMGDIR}/pin_$thread[displayorder].gif" alt="$_G[setting][threadsticky][3-$thread[displayorder]]" /></a>
								<!--{else}-->
									<img src="{IMGDIR}/folder_$thread[folder].gif" /></a>
								<!--{/if}-->
							</td>
							<td><a href="forum.php?mod=viewthread&tid=$tid" target="_blank">$thread[subject]</a></td>
							<td><a href="forum.php?mod=group&fid=$thread[fid]" target="_blank" class="xg1">$thread[groupname]</a></td>
							<td class="num">
								<a href="forum.php?mod=viewthread&tid=$tid" class="xi2">$thread[replies]</a>
								<em>$thread[views]</em>
							</td>
							<td>
								<cite><!--{if $thread['lastposter']}--><a href="home.php?mod=space&username=$thread[lastposter]">$thread[lastposter]</a><!--{else}-->{lang anonymous}<!--{/if}--></cite>
								<em><a href="forum.php?mod=viewthread&tid=$tid&amp;page={echo max(1, $thread[pages]);}">$thread[lastpost]</a></em>
							</td>
						</tr>
					<!--{/loop}-->
					</tbody>
					<!--{if empty($typeid) && $view == 'groupthread' && $page == 1}-->
					<tr>
						<td colspan="5" align="right" class="ptm pbw"><a href="home.php?mod=space&do=group&view=groupthread&page=2" class="xi2">{lang morethread}...</a></td>
					</tr>
					<!--{/if}-->
				<!--{else}-->
					<!--{if empty($attentionthread)}-->
					<tr><td colspan="5" class="emp">{lang no_related_posts}</td></tr>
					<!--{/if}-->
				<!--{/if}-->
				</table>
			</div>
			<!--{if $multipage && (!empty($typeid) || $view != 'groupthread' || $page > 1)}--><div class="pgs">$multipage</div><!--{/if}-->
			<!--{elseif $view == 'manager' || $view == 'join'}-->
				<!--{if $grouplist}-->
					<div class="bn">
						<h2><!--{if $view == 'manager'}-->{lang my_manage_group} <!--{elseif $view == 'join'}-->{lang my_join_group} <!--{/if}--></h2>
						<ul class="ml mls cl">
							<!--{loop $grouplist $groupid $group}-->
							<li>
								<a href="forum.php?mod=group&fid=$groupid" title="$group[name]" class="avt"><img src="$group[icon]" alt="$group[name]" /></a>
								<p><a href="forum.php?mod=group&fid=$groupid" title="$group[name]">$group[name]</a></p>
							</li>
							<!--{/loop}-->
						</ul>
						<div class="ln"></div>
					</div>
					<!--{if $multipage}--><div class="pgs">$multipage</div><!--{/if}-->
				<!--{else}-->
					<div class="emp"><!--{if $view == 'manager'}-->{lang no_group_create_now} <!--{elseif $view == 'join'}-->{lang no_group_join} <!--{/if}--></div>
				<!--{/if}-->
			<!--{/if}-->
		</div>
	</div>
	<div class="sd">
		{subtemplate common/userabout}
		<!--{if $managegroup}-->
		<div class="bn">
			<h2>{lang my_manage_group}</h2>
			<ul class="ml mls cl">
				<!--{loop $managegroup $groupid $group}-->
				<li>
					<a href="forum.php?mod=group&fid=$groupid" title="$group[name]" class="avt"><img src="$group[icon]" alt="$group[name]" /></a>
					<p><a href="forum.php?mod=group&fid=$groupid" title="$group[name]">$group[name]</a></p>
				</li>
				<!--{/loop}-->
			</ul>
			<div class="ln"></div>
		</div>
		<hr class="da" />
		<!--{/if}-->
		<!--{if $commongroup}-->
		<div class="bn">
			<h2>{lang my_join_group}</h2>
			<ul class="ml mls cl">
				<!--{loop $commongroup $groupid $group}-->
				<li>
					<a href="forum.php?mod=group&fid=$groupid" title="$group[name]" class="avt"><img src="$group[icon]" alt="$group[name]" /></a>
					<p><a href="forum.php?mod=group&fid=$groupid" title="$group[name]">$group[name]</a></p>
				</li>
				<!--{/loop}-->
			</ul>
			<div class="ln"></div>
		</div>
		<hr class="da" />
		<!--{/if}-->
		<!--{if $_G['setting']['search']['group']['status'] && ($_G['adminid'] == 1 || ($_G['group']['allowsearch'] & 16))}-->
		<div class="bn">
			<h2>{lang find_group_in_site}</h2>
			<div class="gsh">
				<form action="search.php?mod=group" method="post">
				<p class="pns">
				<input type="text" name="srchtxt" id="groupsearch" class="px vm" value="{lang enter_search_group_name}" onclick="$('groupsearch').value=''" />
				&nbsp;<button type="submit" class="pn vm" name="searchsubmit" value="yes"><strong>{lang search}</strong></button>
				</p>
				</form>
			</div>
			<div class="mtn"><a href="group.php?index=1" class="xi2">{lang view_more_group}</a></div>
		</div>
		<hr class="da" />
		<!--{/if}-->

		<div class="drag">
			<!--[diy=diy2]--><div id="diy2" class="area"></div><!--[/diy]-->
		</div>
		
	</div>
</div>

<div class="wp mtn">
	<!--[diy=diy3]--><div id="diy3" class="area"></div><!--[/diy]-->
</div>

<!--{template common/footer}-->